package com.zmq.service.login.impl;

import com.zmq.bean.UserBean;
import com.zmq.dao.ILoginDao;
import com.zmq.service.login.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("loginService")
public class LoginServiceImpl implements ILoginService {

    @Autowired
    private ILoginDao loginDao;

    @Override
    public UserBean getUserByUsername(String username) {
        return loginDao.getUserByUsername(username);
    }

    @Override
    public int updateUser(UserBean user) {
        return loginDao.updateUser(user);
    }
}
